package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 系统用户角色表
 */

@Data
@Table(name = "dt_sys_admin_role")
@EqualsAndHashCode(callSuper = false)
public class SysAdminRoleEntity extends BaseEntity {

    //部门记录ID
    @NotNull(message = "companyDeptRecordId参数不能为空")
    Long companyDeptRecordId;

    //角色中文名称
    @Length(min = 0, max = 30, message = "roleNameZh参数最大长度不30")
    String roleNameZh;

    //角色描述
    @Length(min = 0, max = 50, message = "roleDesc参数最大长度不50")
    String roleDesc;


}
